<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<%@include file="/WEB-INF/taglibs/common/taglibs.jsp"%>

<head>
<title><spring:message code="admin.createlicense.title" /></title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link rel="stylesheet" href="<c:url value="/css/styles.css"/>" />
<script src="<c:url value="/javascripts/common.js"/>"></script>

<script language="javascript">
 
	 function validateForm(){
		 return (validate_required(document.getElementById("license.name"),'Please enter lisence name'));
	 }
</script>
</head>
<body><%@include file="../top_menu.jsp"%>
<table width=100%>
	<tr>
		<td><c:import url="/WEB-INF/jsp/menu/admin_license_menu.jsp" /> <br />
		</td>
	</tr>
	<tr>
		<td><%@include file="/WEB-INF/jsp/include/messages.jsp"%>
		<br />
		</td>
	</tr>
</table>
<form:form commandName="licenseForm"
			method="post" enctype="multipart/form-data" onsubmit="return validateForm()">
<table width=70% class="formTable">

	<tr class="formHeader">
		<td colspan="7"><spring:message code="admin.createlicense.label.createlicense" /></td>
	</tr>
						<tr bgcolor="#FFFFFF">
							<td width="18%"><spring:message code="admin.createlicense.label.licensename" /></td>
							<td width="80%"><form:input path="license.name" size="30"
								readonly="false" /></td>
						</tr>

						<tr bgcolor="#FFFFFF">
							<td width="18%"><spring:message code="admin.createlicense.label.text" /></td>
							<td width="80%"><form:input path="license.text" size="30"
								readonly="false" /></td>
						</tr>

						<tr bgcolor="#FFFFFF">
							<td width="18%"><spring:message code="admin.createlicense.label.comments" /></td>
							<td width="80%"><form:textarea path="license.comments"
								rows="8" cols="20" readonly="false" /></td>
						</tr>

						<tr bgcolor="#FFFFFF">
							<td width="18%"><spring:message code="admin.createlicense.label.active" /></td>
							<td width="80%"><form:checkbox path="license.active" /></td>
						</tr>


						<tr bgcolor="#FFFFFF">
							<td width="18%"><spring:message code="admin.createlicense.label.attachements" /></td>
							<td width="80%"><input type="file" name="file" /></td>
						</tr>
			 
				<tr>
					<td><input type="submit" class='ui-button ui-state-default ui-corner-all' value="<spring:message code="admin.createlicense.button.createlicense" />" /></td>
				</tr>
			</table>
		</form:form> <%@include file="/WEB-INF/jsp/include/footer.jsp"%>
</body>
</html>